package model;

import java.io.Serializable;

/**
 * 学生分数实体类
 */
public class StudentScore implements Serializable {

    private static final long serialVersionUID = 5859443840572555581L;
    private Student student;
    private int score; //得分

    public StudentScore() {
    }

    public StudentScore(Student student, int score) {
        this.student = student;
        this.score = score;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "StudentScore{" +
                "学号：" + student.getId() +
                "\t\t姓名：" + student.getName() +
                "\t\t得分：" + score +
                '}';
    }
}
